wayland: Don't recreated keymaps on layout change
authorMatthias Clasen <mclasen@redhat.com>
Sat, 23 Mar 2013 22:02:28 +0000 (18:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 23 Mar 2013 22:04:15 +0000 (18:04 -0400)
commit9182eacadfb6fc1f190997dfaf9e2fa456e9b212
tree5c76eb5e536fbda7bfc58e743ec4376726aa8cca
parent0f59ff4550580d3b21b7a3bc0740a57c256c9768
wayland: Don't recreated keymaps on layout change

The GDK model for keymaps expects the keymap object to stay
around and emit a ::keys-changed signal. So, do that. This
should make layout changes work, but it remains untested since
weston does not support layout changes at runtime.

At the same time, plug a memory leak where GdkWaylandKeymap
forgot to free its xkb objects in finalize.
https://bugzilla.gnome.org/show_bug.cgi?id=696339
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkkeys-wayland.c
gdk/wayland/gdkprivate-wayland.h